added unistd.h requirement