Add missing "sys/stat.h" include
- should help with FreeBSD buildbot