xapian-bridge C port

endlessm/eos-sdk#2463
I've always followed @ebassi's rule of thumb too, so I will leave it only in the header unless you strongly feel otherwise.