Initial work towards OpenGL 3 support