Fixed incompatibilities with latest Haskell Platform