apisearch: trivial build fixes