Add --enable-profiling, set OCAMLCFLAGS and OCAMLOPTFLAGS.