add support for weak_method_callback_static