fix optiflags when --optimize is not passed