glsl2: Add the API defines to the glsl2 build so we get the right GLcontext