Use uintmax_t instead of uint64_t for MALLOC_STATS statistics. Use inttypes.h PRIxXXX macros for printing.