Fix build (dirent->d_namlen is not portable)