some general fixes that get stuff working on cygwin
missed prefix