Use bsd_compat.h to provide faccessat().
Replace incorrect to builddir with srcdir.