Fixed compilation on ghc 7.6.3