xapian-bridge C port

endlessm/eos-sdk#2463
(The latter comment applies to other .h files as well)