add more warnings and fix them
cmdline debug flag for startup debugging
more lib portability improvements, no strdup/cmp
Merge remote-tracking branch 'telehash/master'