Fix signal handler doesn't work on Ruby 2.1

[ruby-gnome2-devel-en] A crash with latest ruby/ruby-gnome

Reported by Carlo E. Prelz. Thanks!!!