add os version function to libinstall