Fixed to build under ruby-1.9.3