Consolidate ffi
xxh64, refactor