Add missing sys/stat.h include.