Include <inttypes.h> when using intptr_t.