add hftp:decode setting
fixed compile errors and a warning with clang.