changed stat() call to _stati64() on windows platform