fix build on MRI1.9, 2.0.0