Doc: update compiling.rst

* Emphasize 3.12.1 requirement
* Check for 3.12.1 and run `opam switch install` when not available
Merge pull request #321 from matsen/321-ocaml-version-in-docs

Clarify OCaml 3.12.1 requirement