Compile with optimization.