fix build with OCaml 3.12.1 and --enable-tests