add o3 optimizations and also include it in the build script