Remove dependence on main mod from library