xapian-bridge C port

endlessm/eos-sdk#2463
Should also include `json-glib.h` since you use `JsonObject` below.