restore some optimization flags