S. African leader to appeal ruling on prosecutions boss