adding idt_set_gate macro
small changes to the way idt entries are created