gc: put private functions in .c file

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>