Fix check for stat.st_ino with strong compiler flags

Properly include `stdlib.h` for the definition of `exit()`.
Properly quote first argument of `AC_DEFUN()`
Fix out-of-tree builds

This only fixes the build part, the checks still won't work in
out-of-tree builds.