fix compiling error cause by undefined ssize_t on vs.
Merge pull request #5135 from Dhilan007/develop_crash

fix compiling error cause by undefined ssize_t on vs.