Fixes to work with ruby 2.0

Requiring named arguments doesn't work with ruby 2.0, but everything
else should be fine.