meson: fix up use of deprecated meson api warnings after bump to meson 0.59
On top of !1084 (merged), but seemed best to do this in a separate MR since it's quite noisy.
On top of !1084 (merged), but seemed best to do this in a separate MR since it's quite noisy.