fix a few warning from clang