Add support for setting IRQ handlers.