change hacky fseeko and ftello fix from previous mnolan2 commit