Hacks to run without depending on SDL palettized or 16-bit support.