update optimizer build flags