For African leaders, Fidel Castro was a comrade in arms