Added #include <sys/param.h> to dirent.h for MAXPATHLEN