Use SDL_Color instead of PALETTEENTRY.

Also, various little cleanups.