Fix uialert

This is a workaround for UIAAlert objects in Xcode 6 and iOS 8 simulator not having cancelButton() or defaultButton(). I'm not convinced that this is a great approach, but it's not a great problem to have either :-|