Include fstatat() shim.
Use compatibility shims for humanize_number()
Use compatibility shims for strtonum().
Remove unnecessary reference to AT_FDCWD.
Additional OS X portability fixes.