Make razor-client work on Ruby 1.8.7 and 1.9.x

Unfortunately, some OS's still ship with the woefully outdated Ruby 1.8.7; we pay homage to them with these changes.