Add autoconf-functionality to source, tweak headers.