MS Windows compatibility: use ANSI function names; added a dummy unistd.h, required by the generated lexer