unistd: work around cygwin bug