Fix builds of haskell-erf and haskell-dlist.