adapt parameters for faster compilation
clean up cxx flags