Allow unix-like build under mingw

This enables one to build with ./configure && mingw32-make