build with --enable-debug=no died with unused var