Remove config.h from public headers and include it in non-header files instead

To avoid symbol collision such as PACKAGE or VERSION with
autotools-based project.
Fix building with --enable-openssl after removed config.h inclusion from
public header files
Merge pull request #69 from teerapap/fix-autotools-config-h

Thanks for the contribution.