Add unistd.h header
"similiar" --> "similar"
Fix null pointer dereference, closes #26
Merge pull request #27 from Tilka/master

Small fixes