Added -O2 optimiation flag for CXXFLAGS.