Fixed build on ruby 1.8