made changes so compilation works on windows