Fix preprocessor statement.

GHC 7.6 removes the deprecated catch function from Prelude, so we have to
add conditional importing based on whether we have base >= 4.6.0 (from GHC 7.6+)
or an earlier version.