Added the sys/stat.h header file to a number of