pflogd: Make pflogd recognize previous logfile

* scan_dump() must use pcap_sf_pkthdr instead of pcap_pkthdr

* other minor changes to make pdflogd more similar to the FreeBSD version

Changes obtained from FreeBSD