Fixes for qemu-user mode stuff