libconnect: samples/raw/pcap_files.c: adding improved basic pcap format file management sample