check library version against semver version_compare()