Adds unistd.h include

Older versions of g++ and XCode used libstdc++ and have recently
started using libc++. A consequence is that the functions in unistd.h
aren't defined implicitly, and they must be defined explicitly by
including unistd.h