Fixed build break in case libpcap-dev is not available

In case libpcap-dev was not available or the --enable-pcap=no option was used, compilation failed. This should now be fixed.