midgard2: fix configure flag to match libgda version

Fixes #18572.