Kernel level compat shims for stat and dirent.
Keep freebsd10_kern_getdirentries under ifdef COMPAT_43.