Compilation fixes for OpenGL.