Fix build errors from hackage.