Warning fixes with clang compiler