fix compilation with older GHCs