Unbreak the build on GHC <= 7.4.

Fixes #1494.