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