Fix criterion build with older versions of GHC.