Made dependencies stricter
Merge pull request #5851 from GrahamCampbell/4.2-dependencies

[4.2] [IMPORTANT] Made Dependencies Stricter