fix #17, should return ftell(m_fp)
(cherry picked from commit 7294ee0e1eb64575bbf35d2c543e68b124132637)