FFI bindings to libc stat.