configure.ac now properly checks for a C++ compiler