Improve VC support

I haven't tested the GLES examples, but these changes get the GL2 and GL3 examples to build under VS2012.