Relax build module dependencies

This is to make sure the package can be built with GHC 7.6.3 and
Cabal 1.18.