Fix a bug in ocaml bindings that has incorrect linkage options.