In my experience it really comes down to motivation around the right things.
First, you need to sell your employees on your vision and get them focused on the end goal. Then you need to plan in a steady stream of successes. Not just milestones but points they can reach where they get a real feeling of accomplishment for reaching that goal. It should have some kind of visible impact on your customers, not just a goal made strictly from a technical viewpoint.
Developers who get focused on their 'craft' rather then the business goals are simply not motivated correctly, or mismanaged in other ways. It all comes back to leadership.
That said, yes there are traits you can hire for, but I've seen all types of developers come around and really get on board with the vision and maintain focus given the right leadership.
Narjeet hit on a key point which is to share what's going on with everyone. Make it their company. Find ways to show the impact that they are having in a real, tangible way. The most successful startup I worked at, revenue numbers were pretty open, as in we had large screens showing how much money we were making at that very moment, broken down so everyone could see where it was all coming from. This really motivated and focused people. It drove home just how much responsibility their teams had, and the impact it made on the business. People would be cheering when the numbers would jump up, or when they went down you would see people immediately going to find out why, and on their own without anyone asking.