Add POSIX emulation for IRQ_* macros; Add Qt support.