Improved OpenGL forward-compatible detection.