Update util.cpp

Added <unistd.h> include

Fixes for gcc 4.7
http://gcc.gnu.org/gcc-4.7/changes.html

My full error output here:
https://gist.github.com/moriarty/7648386
Merge pull request #1 from moriarty/patch-1

Update util.cpp