ios: clang fixes for xcode 7.1. performance improvements on clang generation