Declare version number in one place: version.h

Also return platform and version number in user agent header