Change solib-dsbt.c to use type-safe registry