Removed option to disable loading of winmm.
Window class cleanup.