Fix Windows compile

- Typo in input.c
- Only include unistd.h if we have it
- Use _lseeki64 on Windows, for 64-bit offsets
- Add new files to VS sln
- Force Windows to allow POSIX IO functions
Windows needs to open files in binary mode
On Windows, prefer Windows input to POSIX