Turn optimization flags on for release builds.