Made system call windows-compatible