library: Improvements to version stuff