[PATCH] compat: missing dirent.d_type field