Should fix OSX build due to using correct version of stat.

Darwin needs special version of stat.