adding #include <unistd.h>