specify CXX compiler and library links for cppunit test on mac