McCain says U.S. must rethink how to solve problems