Fix type error with GHC 7.4.