Use PRId64 if available, otherwise use a cast. For some reasons, it failed during bootstrap with a -Werror even though %ld should be okay with int64_t on x86_64-gnu-linux. Nonetheless, using PRId64 is better. Committed after testing on x86_64-gnu-linux. Tobias