StGLCore - fix compilation errors on desktop OpenGL