Add mingw support to the code and the cmake build system. 64 cross compiles on Fedora correctly, but 32 fails with linker errors. I'm not certain that isn't Fedoras fault.