Fixed rebuild in windows