Fix compilation on clang

Reviewer: trivial

Running clang as the actual compiler catches some errors the static analyzer does not. Added clang builds to the precheckin script to prevent these from creeping back in.