fix cygwin compile error