Fix a problem that qemu `./configure` doesn't work

This is caused by #17754. Now fixed.