GL_TYPE() is a function in newer versions of OpenGL, this fixes tests on...

... Ubuntu 14.04. Should take care of #524