add cmake options for the clang static analyzer

Build in support for the clang compiler and add an option for clang static analysis