Support library for OCaml programs running as Erlang ports