Allow proper compilation with --enable-shared
Enables compilation of vlc with wasm32-unknown-emscripten with shared module. Previously compilation would fail because of various compatibility issues, Like:
- Incompatible dependencies from c++ sources
- Test binaries not marked with -s MAIN_MODULE when building
- Building modules did not have exported symbols
- Contribs were not built with pthread/atomics
Edited by Khalid Masum