Fix #2 via include unistd.h for Mac.