Added calls to atexit() with quit methods from SDL libraries.
Removed unused code related to retrieving OpenGL's version.
Removed unused includes.