xapian-bridge C port

endlessm/eos-sdk#2463
Consider `g_test_build_filename()` instead (here and below.)