fix/hack signal handling and condition variables and mutex with Ruby 2.0.0