fix warnings on clang