Windows build was actually only using a single function in there, so just add a similar function to sys/winnt/winnt.c and eliminate the need for including sys/share/pcsys.c in the build.