CMD_WAITJOB: print 64bit ints correctly

Using the Macros from inttypes.h for printf. This is done for platform and
architecture compatibility.

Applying the fixes from pull #2 to the additions in pull #1.