[Configure] make --no-optimize and --no-debug work

These options are mentioned in the --help output but do not work