ruby: no pedantic, test for 2.0 and 2.1, check for rb_hash_clear in ruby.h