Hood latch problems, any ideas?

I would clean it with an aerosol solvent like brake parts cleaner to remove gunk buildup then spray it liberally with penetrating oil. That will definitely fix the problem. I would also coat it w/ some white Lithium grease or something similar that would give lasting corrosion prevention