Build fix for UI and mac.