[safestack] if the target is not a shared library link to safestack_preinit