Added support to detect if libgc is installed.