Obama vows to build ties around the world