Port ghc-events-analyze to the latest version of dependencies

These commits allow to build `ghc-events-analyze` in the latest environment.