Added unistd header for ::close