added windows support
fixed platform.system calls