xapian-bridge C port

endlessm/eos-sdk#2463
I get an assertion failure here when I try to rebuild the database, with `error` having code 4 and message "Error reading block 0: Protocol error".