Working stat struct on x86_64-darwin.
Maybe x86_64-linux support.

Unable to test because of lack of shared library support for stat family
of functions.