Make autoconf work and cleanup headers.