Thread/Pervasives: define [min_int] and [max_int] without assuming that
integers are either 31 or 63 bits. follows https://github.com/ocaml/ocaml/pull/19/files