Added -O2 compiler flag.