Don't hardwire g++.

  Use ${CXX} instead.  Patch from OpenBSD release by JTurner.