build: Don't hardcode shared_library() in meson
Instead, use the standard library()
.
This is a meson best practice.
Fixes -Ddefault_library=static
not having any effect (#2248 (closed)).
Please help test the change, because I have only tested the build on gtk3 so far (to which I think we should backport this if it works).