make code compile on windows

switched unix-specific (also jmv specific) uid/gid detection to reflection.
Merge pull request #18 from radai-rosenblatt/master

make code compile on windows