Fix Cygwin build issues