Companies are building workplaces with clean air, restaurants, even farmers markets to entice reluctant employees.