fix/improve shared library ctor/dtor handling, allow recursive dlopen