Changes to make renderer work in Windows