Fix all the warnings
Small series which addresses the existing build warnings, flips a few more and adds werror=true
to the CI.
Extra warnings are enabled only in the meson build, due to anticipated deprecation of cmake.
We'd want the series, apart from the "waffle: use same version API across programs" for the stable branches.