Include unistd.h on POSIX, not just on __linux__.

Should fix use of fork() on OS X.