Added clang static analysis pass to travis.

Fixed some clang warnings.