reverted hash.cc and some more changes to compile in Windows