minor tweaks for cygwin