Eliminated references to the Ptr<> type in favor of regular C pointers, and did some work on getting the C types to match with the Haskell types (some of the pointer types disagree).