fix for old OpenGL versions in windows