Fix all warnings and migrate to iOS7 support