enable O3 and compiler optimization flags