List.iteri is only available in OCaml >= 4