[freebsd] Link against libgc-threaded.so.

FreeBSD has a separate libgc.so and libgc-threaded.so and we
need the threaded version.