use native weakref implementation for ruby 2.0