move struct dirent to bits header, allow NAME_MAX to vary