SDL: support palette (USE_PALETTE) for COLOR_DEPTH=8

If the palette is disabled, RGB is used.
demo projects: support "Object Layer Palette"

With the same limitations as the "Object Layer" demo: RTCC setting and
potentiometer values plotting do not work.