Add implementations of some qemu stubs.