log: Only include unistd.h if configure found it