Fixing up AM dependencies to allow for some older versions.