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