Need to include unistd.h on some platforms.