Maintain compatibility to ruby 1.9.1

Signed-off-by: ushi <ushi@porkbox.net>