fix some compilation warning while compiling with -Weverything with clang