made some changes to make it compile under windows