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
passed #71541
build autotools


passed #71542
build meson