Fix MinGW build

... and why we explicitly need to add it for mingw, but not for other windows compilers.