set CXXFLAGS also during test