Implement nqp::signal, support various signals.