fix: run mod_init in the package of the library