fix hash compile problem in windows