SDL: use hash table for color cache