Update autoconf/automake files to produce (namespaced) config.h, fix make distcheck

Config header may need to be installed with library on system, we should not include tokens that are not namespaced so that these headers can be safely used within source files that include a config.h from a different project.

In addition, make distcheck is currently broken