fixed issues with cygwin