Use standard option name, and some fixes.
handle compressed man.
tdns require pthread.
optimization flags will be handled with CFLAGS/CXXFLAGS.
getopt_long(3) is used.