meson: Work around meson API bug
See https://github.com/mesonbuild/meson/pull/5646 for more information