Fix all warnings

Mostly int/NSInteger stuff and some updated Xcode settings