use size_t for file size
Increase stack size for EXE