Fix bug with setuid modes in Solaris 10+ code.