Collect and output OCaml ml files in dependency order.