configure.ac: Don't use -O3 if debug is enabled.