wireshark: fix CLT-only build

Fixes #22663.
Fixes #22971.