Updated Xcode project to recommended project settings.
Removed support for garbage collection.
Switched to modern architecture.
Handled various compiler warnings.
Fixed a warning which may have also indicated a potential bug.
Some typecasting to silence compiler warnings.