Explicit configuration of flag dependencies

I couldn't build a library without building dependencies of examples
until I've changed the configuration to this.

My cabal version is 1.20

Also see http://ivanmiljenovic.wordpress.com/2010/09/03/test-dependencies-in-cabal/