fix compilation on ocaml 3.12 (Close: 3833)