Added the lib_version() function to the C++ interface.