Add a missing #ifdef HAVE_UNISTD_H

Will be needed for native Windows build.
diff: more doc fixes