removing a few more compatibility issues with ruby-1.8