Tweak configure flags.

When -debug, --disable-llvm-assertions is added to reduce compile time
and improve performance. Otherwise, disable various optimizations to
make debugging easy.

@Heather, does it make sense?