Fix compile issue with ghc 7.6.3