fix function signature of qemu_chr_open_pty on !linux