Moved more functions into MUtils library, especially all the Qt initialization code and some more OS-specific stuff.