fixed warnings in clang compiler