Added cabal for distribution.
Fixed cabal build error.