Fixed issues preventing use with Ruby 1.8
Merge pull request #218 from mbacovsky/ruby18_issues

Fixed issues preventing use with Ruby 1.8