update to support windows
It's using some process methods (getgid, getuid) that aren't available