Include some required Ogre headers explicitely
Closes #1077: Replace tags before trying to get the message length