Include ubsan runtime even when building a shared library. We don't require the executable to be linked with UBSan.