added O3 optimization in linker