change unistd to getopt for compatibility