Add just enough 64-bit support for wildcards to work.

Without using 64-bit stat() and readdir(), wildcards can't be expanded
on file systems with 64-bit inode numbers.