extras: libtool: Use directory to add shared modules to compile emcc executables
Emscripten has not implemented adding shared libraries directly to main modules properly yet.
See: https://github.com/emscripten-core/emscripten/issues/21667
Therefore, instruct libtool to use directory instead of the shared object file for linking, as suggested in the issue.