Fix the GTK+ build when OpenGL is enabled.