fix build error on ghc-7.6.