users: port to Mac
Merge pull request #90 from Arcterus/users

users: port to Mac