Adding rough OpenGL4 compatability