Added unistd header directive to avoid compilation error in iOS 7