fixed warnings with clang compiler