Adding unistd.h back to Mac
Fix unsigned warning