STL hash to avoid int traps

With some flags, the program fails because of the integer operations.
Furthermore, it looks reasonable to use the STL hash function, unless there's some reason to use the other.