Add __weak for delegate on iOS 5+ only

In order to allow compilation for applications targeting iOS 4.3 without losing __weak benefits for further iOS versions, you should apply conditional compilation.