Fix all Clang warnings.

On Mac OS X, the Clang compiler reports some warnings that GCC did not, cleaned them up.