add "--optimize release" to specify optimization flags used in "--release", without disabling the debugging features, and use the mode in "make test-release"