Add support for automake 1.12.
#undef DEBUG in generated headers.

This can be re-enabled by passing --enable-debug to ./configure.