Addressing compilation errors with XCode 6