rtlib: Use own typedef instead of sighandler_t

The previous commit caused the rtlib to no longer compile on FreeBSD,
due to the use of which sighandler_t is not available on BSD systems.