Support palette initialization

This is not supported by wxWidgets variant, but needed if user changes
the palette.