Support for 64bit targets, and ARC.

* Fix for 64bit warnings when compiling for 64bit archs
* Support ARC by also switching to a more modern Objective-C style