Fix two error for Xcode 6 Beta 6

Fix two error for Xcode 6 Beta 6