Fix some warnings found by clang.