[DF-5258] fix iOS and MacOS compilation