Support building using the latest mingw-w64 toolchain.