Fix MSYS2 build configuration issues.