Windows fixes (mostly lack of unistd.h).