src: add unistd.h to fix sleep compilation error

- Fix a couple of warnings.
Version 0.3.5