Fix some typos in lib/

closes #2835