CMakeLists.txt: specify that only C language is used

This is needed to prevent build failures when no C++ compiler
is installed (for example in buildroot).