Added support for static dependencies to derives.

Static dependencies are dependencies whose modification
does not trigger the dependent derives to be recomputed.