patch to let compile under windows system