Implement framework main loop
Update CMakeLists to link against OpenGL libraries