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