Fix for #159, print errors but do not terminate.  Additionally, print to
standard error rather than stdout, so that error messages do not get
garbled with generated code