fix compatibility with ocaml-3.12.1