Make the project compile in XCode 6.1.1

- Disable garbage collection
- Enable automatic reference counting (ARC)
- Fix warnings