add -O3 option to compile with maximal optimization