[DF-1970] Fix MacOS compilation