Fix build for Mac.

Various clang erros.