Fixed build break in case libpcap-dev is not available

Resubmission of pull request #71 as requested.

In case libpcap-dev was not available or the --enable-pcap=no option was used, compilation failed. This should now be fixed.