buildtools support mingw
Merge commit 'refs/top-bases/t/3rdTools/pthread' into t/3rdTools/pthread