People should actually read up on the tax structure Facebook used: http://www.bloomberg.com/news/articles/2016-07-28/facebook-g.... It's not reliant on some crazy lobbied-for loopholes in the tax code. It actually relies on some fairly mundane provisions of various countries' tax laws.
Just getting rid of, say, transfer pricing rules wouldn't make tax avoidance harder, it would make it easier. Say you do all your R&D in the U.S. But you set up a subsidiary in a low-tax jurisdiction, and license the U.S.-made IP to that subsidiary for $0. Boom the U.S. company now has no profits to show and all profits are in the low-tax jurisdiction.