Added unistd.h header, compiles on my ubuntu 13.10