Fix iOs SDK 6.1 compilation issue