simplify setup so it also works on cygwin/mingw