Expose parsed OCaml version
Fix Pretty module for OCaml 4.02

Pretty.gprintf uses the internal representation of format6 strings,
which has changed in OCaml 4.02. We check the version number and
extract the format string accordingly.