Allow unix-like build under mingw