weak instead of unsafe_unretained

It is safer to use weak instead unsafe_unretained. So I added an iOS version comparison on every unsafe_unretained property or variable, so iOS 5+ versions could take advantage of weak benefits keeping iOS 4.3 compatibility