fix cygwin build issue