Move most of the NSObject code to maccore so that it can be shared with MonoTouch.