Raise max Hash to 1TB
And use size_t where appropriate, as suggested on FishCooking.

No functional change.
Use compiler intrinsic instead of assembly for popcnt
No functional change.
Merge branch 'master' of https://github.com/official-stockfish/Stockfish