fix cpp flags