This reverts the main part of commit 4a264252a7. As plugins are the prime use case for `shared_module` getting rid of the warning from meson about linking against shared modules weighs less heavy.
4a264252a7