add unistd.h include to fix compile