Fix a crash when interoperating with ARC compiled code

objc_retainAutoreleasedReturnValue was crashing when removing a Proxy or a Mediator

also set the NSObject protocol as a base for all protocols