Fix retain loop with self in block
Update project settings
Fix warnings