add unistd for getopt