I have written the glue OCaml code for this using `CTypes`, it will be distributed as a OPAM package, which we can link against.