Xcode 6.1 compatibility

I have checked that it is possible to build in Xcode 6.1 and 6.0.1.