OCaml 4 deprecation fix for Hack

- Bump OCaml requirement to version 4.02.0
- Tmp.temp_dir_name is deprecated in OCaml4, use Filename.get_temp_base_name instead of it.
- String.create is deprecated.
- String.set is deprecated.