Added an include unistd that is not included by default in ubuntu 11