Fix building without a garbage collector

http://hydra.nixos.org/build/6695350