(MESS)-thomson: fix for incorrect palettes in a seldom used video mode [Antonie Mine]

(MESS)-hp48: fix for memory cards and addition of imgtool support for it [Antonie Mine]
Fixed compile. (nw)