Add gen_config.ml to detect the version of OCaml in C
Support OCaml 4.01 or below