Allow unix-like build under mingw
Merge pull request #912 from heuripedes/mingw-configure

Allow unix-like build under mingw