build fixes

Note that this requires the newly release ocaml-cow-0.5.3 to work (should be on the main OPAM mirror in 30 minutes or so once the sync script runs)