Fixed compilation bug on Macs when unistd.h is not included