qemu_create_pidfile implementation for Win32, based on a patch by