Fixes to build
Merge pull request #1 from ngiger/master

Fixed to build under ruby-1.9.3, Thank you Niklaus Giger!