Support for ruby 1.8. Fixes #16