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

Fix previous commit. Optimize scripts.