Fix ui compilation warnings.