Include unistd.h for gcc 4.7

In gcc 4.7, some includes were removed.
The build fails for me on gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2.

This fixes the build.