Fix compile errors on clang/LLVM on iOS 8

Some modification to fix some warnings if using clang/LLVM compiler.
Add a small trick to keep Clang/LLVM quite

Provided by Marcus Froeschl.
Merge pull request #1 from wernerd/develop

Develop