Fixed compilation and tests with OCaml.

There are still some rough edges, though.
- Still no support for separate compilation.
- Newline characters missing for a nicer display for test results.
- ...