(CFACT-59) Add id and gid facts

Today I have discovered that I have never written portable C code and have always relied on GNU extensions. Good times.

Would it be better to use a `constexpr` or use a `#define` for this?