Add compatibility with windows

Hello,

Added compatibility with windows.
Tested on windows server 2012 R2.