Fixes for Cygwin