add check for pcap 1.0+