mach: use add_dso internally