Fix build in cygwin