Tweaks to support Qemu on Windows.