Add nanosecond resolution for [acm]time in struct stat

All operating systems support nanosecond resolution for the
atime/ctime/mtime fields in struct stat. Add support for this by adding
the following fields to record #stat which contain the sub-second
fraction in nanoseconds: st_atimensec, st_mtimensec, st_ctimensec.