capdump: -pthread is needed since 75185ed
capdump: fix unsigned warning
test: misc issues