From early bonuses to gas cards and free lunch, companies offer perks to retain employees while struggling to keep their costs down.