Fix some compiler warnings in clang.