Improved GL extension checking/detection.

See title.