Fixing compiler error for non-iOS platforms