a bit nicer check... newer mingw doesn't need hack. But unfortunately mingw I'm getting with apt-get needs one...