Use O3 optimization for compilation.