Nicer way to specify dependencies.

Thanks to postmodern's hint :)
Introduce version restrictions on dependencies.