configure: use C++ for all tests, kill CFLAGS