Add the notion of version in both build systems. Remove redundant code.