Compilation fixes for Ogre 1.8

Tested some of the samples and everything seems to work OK.