meson.build: enable static build

Use meson 'library' instead of 'shared_library' to enable static build
and disable nouveau tests for static build as they use dlsym(), which
makes them incompatible with static linking.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Changes v1 -> v2:
  - squashed with 'tests/meson.build: disable nouveau tests for static build'
    aka Merge Request !28
6 jobs for ps-devel-meson-build-enable-static-build in 2 minutes and 17 seconds
Status Job ID Name Coverage
  Containers
passed #1036710
debian

00:00:27

 
  Build
passed #1036713
meson-aarch64

00:00:18

passed #1036714
meson-armhf

00:00:37

passed #1036712
meson-i386

00:01:31

passed #1036715
meson-ppc64el

00:00:35

passed #1036711
meson-x86_64

00:01:50