Include unistd.h for gcc 4.7

In gcc 4.7, some includes were removed. This fixes the build.