Add binding for readdir_r