First round of porting changes for winvogl

This branch should compile voglcore and voglen on windows, and should still be completely functional as before on linux.