Unlike libstdc++, libc++ does not leak <unistd.h> into the <c*> headers that examples/read/read.cpp includes. This means that we need to explicitly include <unistd.h> to get getcwd().