Fixed the wrong glXGetProcAddress being used.
Fixed out of date headers in the tests.