Fix id and groups for Macs.  Also add dependency information.

Fixes both #261 and #264.