update for xcode 6 beta 2 GM

Hi,

I update the code in order to compile with the latest xcode 6 beta 2.
If you like, merge it with your master branch.

Cornel.