Fix UserModel.cpp to use getpwent()

Per open bug report #123

Also fix some problems with passwd struct argument
per comments from @aavci1