Fixed compatibility with gcc on ubuntu (version 4.7). Added unistd.h include in server.cpp.