Fixes for windows unixy environment detection (cygwin, mingw, interix).