Mass Loss and Evolution of Massive Stars in the Magellanic Clouds