meson: backport more patches from poky
meson: backport more patches from poky

This backports the following poky's commits:
5c9a02ed678f2a26a26c6398c2837fbd2ddcb561
06606fd9e0c1000c7479f2899eb6e5c48fa5b2cd

meta-debian/meta-debian,meta-debian/meta-debian,meta-debian/meta-debian,meta-debian/meta-debian,meta-debian/meta-debian,meta-debian/meta-debian