Make clang++ happier when using G_STATIC_ASSERT
clang++ says it supports _Static_assert but then will complain that it's a C11 extension and that you should not use it in C++ code (which imho is fair enough)
So try to detect a C++ compiler first and then the C compiler, similarly to what is done for the G_NORETURN case