[DF-5161] fix cmake building for mac