Build updates and small fixes
Update the use of Meson to avoid deprecation warnings, and fix a couple of compiler warnings while we're at it.
Update the use of Meson to avoid deprecation warnings, and fix a couple of compiler warnings while we're at it.