Fix some warnings, palette support.