Merge pull request #278 from Alexpux/mingw-w64-builds

Some fixes.