Compiling with MSYS2

Did the same with MSYS2/mingw32: works fine, no changes except for i686 in the pacman package names instead of x86_64.