Refactoring and cleanup
Multiple changes

- Added detection for KHR_debug to the build system.
- Updated the oglplus library sources.