Focus on the core technology and build the company on the way up.
Layoffs, if you must, but try to elevate employee motivation by increasing transparency, sharing what's going on, and keeping some minimal perks applicable, like free coffee in the office.