Add compatibility with ruby 1.9.3

- Remove use of keyword arguments
- Remove use of literal symbol arrays with %i