Change fseek ftell method for file size to fstat.
Merge pull request #530 from rolandhill/fix-fseek

Change fseek ftell method for file size to fstat.