fix windows opengl initialization