Add missing include for `sys/stat.h`.