Enable generic deriving only on compilers that actually support it.