Add include for unistd.h

This commit adds an ifdef-guarded include of unistd. Without this
included compilation fails on tested *n?x targets.
Merge pull request #1 from asheidan/issue/doesnt_compile_on_nix

Add include for unistd.h