Updates to the GL version detection

- Added support for GLFW < 3.0 in the detection module.
Multiple changes

- Updated the GL version detection.
- Updated and fixed some problems in GL extension detection.
- Added support for GLFW-3