[th/meson-werror-fixes-2] more workarounds for compiler warnings in meson compiler checks
The goal would be that CFLAGS='-Wall -Werror' meson build
works.
This is just a small step in that direction.
the stack_grows_check_prog
check seems questionable.