Add missing include (unistd.h)

- Also add this to configure
- Add missing .c header