Fixing windows cygwin build errors