Hack fix for OCaml4 deprecations:

- Tmp.temp_dir_name is deprecated in OCaml4, use
- Filename.get_temp_base_name instead.
- String.create is deprecated.
- String.set is deprecated.