Build library and upgrade version.