unistd.h doesn't seem to be necessary but breaks the MS VC build.