Added support for mingw-w64 cross-compilation.