Fix warnings/errors when compiling for arm64

The SDK project didn't compile with Xcode 5.1.1 and iOS SDK 7.1.