Initial work to convert to OpenGL 3.3 and higher. Still not working