Add gen_config.ml to detect the version of OCaml in C
Support OCaml 4.01 or below
Merge branch 'c-impl' into travis-ci