windows and latest mingw fixes. Support for GL2 with extensions.