Fix compilation on ghc 7.8

Like #10 and #11, but avoids the warning using older GHCs.