Modified handling of error/log file for parser, to make more portable (ie SunOS 5.6 stderr is #defined, not of type FILE *, so can't do stderr=...)