The evolution of massive stars. II - The influence of initial composition and mass loss