Fix ambiguous catch for GHC 7.4