meson: Fix DLL search path during test execution on Windows

Meson needs to see all libraries a target depends on so that it can add
each to PATH when running "meson test".

Avoids "*.dll was not found" errors.
2 jobs for meson-windows in 16 minutes and 28 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #71541
build autotools

00:00:56

passed #71542
build meson

00:16:28