I think we need a legal solution, but if the tech community refuses to participate in corrupting the technology, it puts the spooks in a worse position. I'd sign a pledge saying I will never work on any apparatus (software, data centers, anything at all) that are used for mass surveillance. That's pretty easy for me to do though... the money government throws at some companies and people for this work is more tempting than the One Ring.
http://www.cs.ucdavis.edu/~rogaway/politics/surveillance.pdf
http://bits.blogs.nytimes.com/2013/09/10/government-announce...
More like this couldn't hurt.