core: macos bindings for libc::{opendir,readdir} fixed
core/rt: cleanup for macos os::list_dir cruft