emacs24: fix build on darwin

Fixes http://hydra.nixos.org/build/5782192

Probably fixes the `emacs24Packages` builds too.