fix compiler warnings on clang