Avoid rebuilding libbase when the version number changes

fixes #7647