Fix for building without palette support.