Make gem compatible with ruby 1.8.7

I don't know if you are willing to add support for 1.8.7, but with a couple of changes in both executables the gem seems to be valid ruby 1.8.7. So far on my testing (only of the http proxy) everything else works fine, and ruby -c raises no errors.