Adds support for windows platform. Improves preformance and usability on windows.