Add warning flags to clang builds as well as fixes for those in the code

the flags were -Wc++11-narrowing -Wsign-compare
-Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard
-Warray-bounds -Wcomment