Included unistd.h for compilation on OS X

For use of usleep, read, etc.