Fix incompatibility with ruby 1.9.2p320