Allow building with no GC again.

The build option --with-gc=none was failing. This fixes that.