Real world native libs likely need to access the wasm_runtime_xxx API. This example demonstrates it. Build vmlib as a shared lib to make it straightforward to share a single runtime instance between iwasm and native libs.