fix some clang warnings