More compatibility with OCaml < 3.12.