I've included stdint.h in readfile.c instead of unistd.h. After this change no more definitions from unistd.h are required. So the unistd.h version in the win directory is now only an empty file. Thsi is sufficient that the code compiles under Windows.