Add example peggrep

And other minor changes:
  fix make -C src clean, setting -ggdb by default,
  use intptr_t instead of int for casting pointers (for compat with some 64bit systems),
  and hide print_string when DEBUG is not present.