Add support for MinGW build.