Created an OPENCCN_ERROR_PRINT macro and changed all fprintf(stderr, ...) calls to this.