optimization flags. corrections