Windows fix get gl functions
Merge branch 'master' into windows-build