Use rb_enable_interrupt only when available (fixes #248, #389)