added a posix version for MVM_dir_open/MVM_dir_read/MVM_dir_close