cleanup
set cxx flags correctly