try osx legacy dirent