Re #8365 Fix win build. cast tellg to long.