fix compilation error with ruby2.0-dev