Made it compile and work in windows