xapian-bridge C port

endlessm/eos-sdk#2463
Well, there's not much to "upstream" for this project, as we're the upstream! :)