support generic-deriving 1.7