issue #3781, Undefine the __MINGW32__ macro to fix the script error on windows