(OSX/iOS) Make iOS ObjC code more reusable with OSX