Adjust to Ruby1.9+