Add compatibility with old libpcap versions