(charmap_readdir): Use struct dirent64 instead of struct dirent for