append a -O2 optimization compilation flag