fix configure, clean up Makefiles
silence ocaml 4.0 warnings