Fix building with --enable-debug-flags