Rewrote parts of main.cpp to abstract the underlying platform enough to transition to Ogre3D