Revert "(Pointed out by Alcaro) configure shouldn't require a C++ compiler"

qb.libs.sh uses CXX for a few things. E.g. Cg has to be linked with C++
compiler or it breaks on some distros.