Converted to ARC.
Included targets for osx and ios.