Fix the build for ruby 2.0
Merge pull request #1031 from jacobo/ruby20buildfix

Fix the build for ruby 2.0