Code cleanup, version 2

These changes are merely for general clean-up of the munt codebase. No functionality changes have been introduced here. 

The purpose of this pull request is to make it easier to integrate munt with other software that uses it - in this case, the ScummVM project