Multiple changes

- Refactored GL version/extension detection.
- Updated the common external library detection.
- Updated the example dependencies.
- Removed a unused variable warning.