fixed window creation when OpenGL 2.0 is used