'cabal configure': honor the '--constraint' flag.

Fixes #1150. Fixes #1564.
Merge pull request #1565 from 23Skidoo/configure-constraints

'cabal configure': honor the '--constraint' flag.