Fix some warnings

Compiling the source gives quite a few warnings.  This pull request fixes some of them.

NB: cfc933c relies on `open!`, which was introduced in OCaml 4.01.0