Fix OpenGL extension detection on Linux/Mesa.

Created function in glwrap to test whether a GL extension is available.
This required using OpenGL3's glGetStringi. Backwards compat code can
be added to function if necessary.