last night , commander in chief fidel castro made a technical stopover in accra , ghana , on his way to south africa , where he will attend the inauguration of nelson mandela as that nation 's first black president .