People who want quiet suburbs can pool together a corporation to own a planned community. That limits the scope of their NIMBYism to just their community, and as shareholders they could vote on whether to get paid for selling their land to Walmart or Google or the people wanting to set up high-density apartment complexes. Plus they have an even stronger voice in their immediate community, so they can do things like build walls to keep the homeless out. I think getting bought out as a shareholder would warm them to the idea; if Walmart buys the land next door you just want to complain, but if you're getting some of the money you might be in favor.
The government should only have the power to prescribe structural integrity rules, fire safety codes, building codes for number of exits, etc.