Added #include <unistd.h>