meson: Be able to build the static library
Don't use the meson's shared_library() target, but the library() one, so we are able to change the library type through the default_library option.
Also disable introspection if the static library is requested as the gnome.generate_gir() needs an executable or a shared library.