fix for <5.0 ios missing weak references