Fixing SEG faults because of OGRE in mac