Threads/Pervasives: define [min_int] and [max_int] without assuming that integers are either 31 or 63 bits

follow https://github.com/ocaml/ocaml/pull/19/files