modperl_sys_dlclose((void *)SvIV(libref));
modperl_sys_dlclose(INT2PTR(void *, SvIV(libref)));
static void modperl_package_unload_dynamic(pTHX_ const char *package,                                            I32 dl_index){    AV *librefs = get_av(dl_librefs, 0);    SV *libref = *av_fetch(librefs, dl_index, 0);    modperl_sys_dlclose((void *)SvIV(libref));    /* remove package from @dl_librefs and @dl_modules */    modperl_av_remove_entry(aTHX_ get_av(dl_librefs, 0), dl_index);    modperl_av_remove_entry(aTHX_ get_av(dl_modules, 0), dl_index);    return;    }