Fixed some warnings on clang/gcc