Fix compilation problems.

* Changed cart to cart3 so as not to conflict with ZOE's cart.
* Added lots of #includes that GCC didn't used to require.
* Updated to latest ZOE API, which needs another argument for
  zhit::zhit().