Fix imports for GHC versions <7.8