fix compile error on ghc-7.6.