Minor changes
- replaced _fseeki64 with _lseeki64 because WinXP's msvcrt.dll doesn't have _fseeki64
- using appFileExists() everywhere when needed (replaced fopen/fclose construction with a function call)
- code cleanup