make hell more portable by implement getEffectiveUserName on win32
remove dependency on Win32 for unix build