Restore Ruby 1.8 compatibility.

Convert to 1.8-style hashes and remove usage of require_relative.
Merge pull request #24 from bernd/18-compat

Restore Ruby 1.8 compatibility