Add a err.c for every module, and compile them all in.
This fixes the build of the shared library version, as there are no more
undefined symbols. `kexplain` likely will still not work, but it didn't work
in the first place.