workaround rubygems#763 to fix build on ruby 1.8.7