Replace mingw/gnuwin32 packages to msys2

Add perl for autoconf