modified to use OGRE 1.8.1