Add patches to port to Ruby 2.0.

Signed-off-by: Oleg Girko <oleg.girko@jolla.com>