Little things that I missed

Added missing forward-declaration of enum type.
Made more explicit checks against 0 (success) when calling
`pc_set_group()`