Fixed compile warnings for XCode 4.5.2
Converted to Objective-C ARC