add a LIB_VERSION configuration variable

Eventually, the libraries installed should contain a bit more versioning
information. This permits some more centralisation of version information.
add snippet for generation of config.h with version information