add unistd.h to client.c