x86, 64-bit: add gate_offset() and gate_segment() macros