vl: move various initialization routines out of qemu_init