support for struct dirent.d_type added to Linux readdir wrapper