Make the capture_if callbacks HAVE_LIBPCAP agnostic.