Change various cartridges to use dependencies dir, introduce build-dependencies