Fixed up lexer.c file-handling and associated stuff.