Allow to use optimization in build script.

Allow to use optimization in build script.