Fix an incompatibility with ruby 1.8.7
Remove some useless stuff