Remove compile flags for all optimized targets because they usually contain -DNDEBUG flag which disable assert() macro.