common: Use ftello(), fseeko() variants for large file support