added --enable-debug option