Log Message: Tackle the most urgent 64 bit time_t issues. The whole source should be treated with a fine comb for 'sizeof time_t == sizeof long' misuse. While here, deal with a few more warnings by #including the missing headers. Builds and works on NetBSD/sparc 5.99.55 with gcc 4.5.