fixed undefined variable on cygwin
cygwin tweaks