Write version in builds
Merge pull request #2442 from tsauerwein/build-version

Write library version in build files