Fix compilation for GHC <7.6.