refactor of orpie to build with ocamlbuild, findlib, and OCaml libraries