Stdenv depcheck

This protects against issues like #3574.