enabled O3 compiler flags, added exit in mult