meson: check compiler options separately for C/C++
Some options may be available to one but not the other. Fixes this warning:
cc1plus: warning: '-Werror=' argument '-Werror=return-mismatch' is not valid for C++
They are tested separately in autotools.