Rename scandir and scandir_prefix

Rename scandir and scandir_prefix, because these names seem to be reserved
on some platforms.