Fix ios/mac compile error

Fix ios/mac compile error
Update iOS sdk to 7.1

Update iOS sdk to 7.1