build: Define HAVE_CONFIG_H at the project level

Instead of just for gdk-pixbuf-xlib.
1 job for macos-build in 1 minute and 42 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #40091
meson-fedora-x86_64

00:01:42