Favor the CXX variable as opposed of hardcoding c++. Allows one to runregress using a different compiler such as llvm-19 from ports.
fix regress fallout due to CFLAGS vs CXXFLAGS
dlopen regress tests.