TS-1729 Fix channel_stats to compile on various Unixen. Note that this
is still IPV4 only.