Support ruby >=1.9