compatiable with ios arc

Cordova iOS build is using ARC. Made the plugin compatible with ARC build.