fix warnings from clang