fixing IRQ enable/disable and QEMU console debugging

I couldn't initialize threads because I was enabling
interrupts at the wrong time. Now IRQs can be installed
regardless of whether interrupts are disabled. All IRQs
are disabled by default.

Also adding QEMU console debug printf (to `stdio`).