Fix build on GHC-7.8