Fix Cooja PCAP packet header timestamps

Due to a bad cast, the PCAP exporter writes the wrong value to the packet header's 'secs' field. This results in packets with very wrong arrival times, such as year 1969 or year 2106.