Modify lib to work on OpenGL 3 and GLSL 1.3