Fix dependencies.

The dependency on lens-aeson is ignored when its dependencies are not satisfied,
because we add the lens-aeson dependency by adding flag.