Added code to handle SIGPIPE.
Backward compatile with old version of libpcap.