enable -O2 optimization.