Convert citserver to use getopt()