Only build libgit2 and jansson if requires versions are not found.