Windows support

Using support for MinGW in Fedora fix and automate the following: