build: Use Meson to test for compiler and linker arguments
build: Use Meson to test for compiler and linker arguments

Instead of iterating over them ourselves, Meson 0.46 provides useful
convenience functions.

Using the appropriate Meson functions also removes warnings with newer
versions of Meson.

GNOME/at-spi2-core,GNOME/at-spi2-core,GNOME/at-spi2-core