Supporting weak references for supported libraries to support < ios7