Add --debug option support to "quipi" and fix a getnameinfo() buffer overflow problem