fix warnings for clang.