Re #8365 Fix win build. cast tellg to long.
Merge branch 'feature/8365_ILL_D2B' into develop