Dirent type not portable, revert to earlier version File list and fix lstat.
Dirent type not portable, revert to earlier version File list and fix lstat.

gabordemooij/citrine,gabordemooij/citrine,gabordemooij/citrine