Use msinttypes for standard integers but still keep our
versions via typedef alias.

Formatting patterns like %lli should be replaced with the
appropriate macros from inttypes.h.