Fix windows build. Only the OpenGL issue left.