This fixes the Darwin build (http://hydra.nixos.org/build/2517380). Hopefully it doesn't break other builds.