fix clang -Wall warnings