make it compile with ocaml 4.02.0

This is a more clean/minimal version of #3 
Once this is merged in I can make a pull request for opam.