Check for MINGW instead of MINGW32

New versions of msys2 provide a MINGW64 env variable instead.

https://bugzilla.gnome.org/show_bug.cgi?id=734163