(CFACT-59) Add id and gid facts

Just noticed this was in osx/collection.cc, so this would fail the build on OSX, which we don't CI for currently.