x86: make HAVE_SPARSE_IRQ support selectable