Vortex lattice orientation and the anisotropy of Hc2 in type II superconductors