ensure that when statically linking plugins we remove previously built ones that are stale