Find a partner and start a business where the value you create from writing software accrues to you, rather than to the firm who hired you to write code.
I really, really like this comment - especially coming from the outsourcing body-shop type of world, where very little revenue derived from the software trickles down to developers.