build ngram_query binary