OpenGL linux fix, and removed some deprecated GL calls.