xapian-bridge C port

endlessm/eos-sdk#2463
Up to you, but I prefer to explicitly include headers for symbols that the .c file uses, even if they're already included in the header.