This will allow the checks to be changed for different operating systems.
Issue #260 is related to this, but this does not change any current behaviour.
Create separate function to convert user ID / group ID of a user to integer.
Windows is a stub, since this doesn't work on Windows (uid/gid is not a number).