Gabon and Equatorial Guinea resolved a 50-year dispute on Tuesday, signing an agreement over three tiny islands in the Gulf of Guinea.