U.S. military chief says tech giants should work with Pentagon