Clean up signal handling a bit.

Does this need wrapping in #if HAVE_DECL_RLIMIT_RTTIME?