Refactor tshark and the lite ports to fix the build.
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>