Fix JTAG-ICE MKII tool packet read/write routines.