Changes in C binding

- We peek into privates in dwgrep.cc, that will eventually go away.
  This is all transitional.