remove redundant #ifdefs
fix non-pcap build
make test build without pcap support
factor out ARP cache (since it will be needed for netmap socket too)