xapian-bridge C port

endlessm/eos-sdk#2463
Actually I hate that rule, but we use it so that it's not too painful to upstream our code.