Fix ghc warnings