[master] Compilation fix for comparison of std::stream pos value.
This is trivial fix so as I am committing it on my own discretion. Also,
this fix had already been reviewed and applied on master branch but
apparently disappeared after the recent git migration.