add conversions from dirent type to stat type