Make hashing work on Windows