Forgot to mention that because all the solutions we've tried don't support all our use cases, the work around is to rely on plugin loading (which would link to the shared lib). Or the volatile trick.