Fixed dirent.h linux compatibility