support building tools on Windows
Merge pull request #1271 from alex85k/mingw-full

Support building tools on Windows, more MinGW