updated lexer source to use errx & warnx, as typically called before logging is setup