update configure test for gc

Version 7.4.0 doesn't define GC_version if just a sharable library is built, so
switch to using the newer macros GC_VERSION_MAJOR, GC_VERSION_MINOR,
and GC_VERSION_MICRO.

Fixes #130.