Shared library (.so) usage in c++ wasm extension

Hi all, I’m working on a waf based on ModSecurity implemented as a wasm extension. The question that arises is: does Istio extensibility permit to use external libraries (e.g. shared ones, .so files) or everything should be compiled together? If it is potentially possible, how does it work the injection of these libraries inside the sandboxed environment?
Thanks a lot for any clarification regarding this topic.