Moved OS dedection and OpenGL header inclusion into common header