Synchronize User-Agent header with .cabal file

Write library version number from the .cabal file to config.h and use
this value as the User-Agent header in RequestBuilder.