Fix build error on GHC 7.4