(maint) Add debugging when loading ruby dynamic library