Patched to compile on older Mac OS X devtools (thanks, D B!).
Attempt to fix Haiku buildbot (and other systems with an old glext.h).
Backed out changeset b69dfd56e1b0

This was clearly not the right fix.