added --with-debug option.