[ocaml] resolve link reference prototype