Built on Woe32 with CMake and MinGW.

Also changed the internals a bit, although there's not much of them so it's ok.