cleaned up analyzer warnings
added cmake_support