Do not trust the filesystem's readdir to give us nul-terminated file names
remove compat defines.