cabal detects missing external library (libgc)

This fixes a build issue on Debian Wheezy. cabal configure will detect the absence of Boehm's GC library which is provided by the libgc-dev package.

I didn't test other platforms, but this code should work on all of them.