fix build on ruby2.2