Fix compilation when HAVE_UNISTD_H is not defined.