add optimization flags