Check if pcap_next_ex is available

preprare_pcap checks for HAVE_PCAP_NEXT_EX, but our build script
doesn't actually check for it. pcap_next_ex is the better API call so
we should use it if available.