Fix typo and add header files to err library.