OgreMateria: Fix warnings and linux build error.