Update code to compile under Xcode 6.2 beta 2.

Previous code compiled under Xcode 6.2 beta 1.

Changes now work with beta 2, but are not compatible with beta 1 anymore. Please download Xcode 6.2 beta 2 to compile and run this project.