Fix some compiler warnings.
Fix compiler warnings on macosx by avoiding stat64() and friends.

On versions of macosx we support, regular stat() and friends are 64-bit.
Using stat64() causing a deprecation warning from the compiler.