Made the code build under windows.