fix mingw script to build 3rdparty libs