version: add functions to fetch the library version at runtime.