provide better generic support for environments that do not have 64-bit integers. Among others, this should solve PR 1086
have a uniform representation for those over all architectures, so a little bit of hackery is needed. Contributed by nagendra modadugu <nagendra@cs.stanford.edu>