fix CC ADVANCED_OPTIMIZATION_MODE