Endeavour settles dispute over African gold mines