Fix configure to accept CXXFLAGS. Since I'm there, use DATADIR.
PR: ports/71787 Submitted by: Alex Semenyaka.